#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
float x1,x2,disc,deno;
clrscr();
printf("enter the values of a,b,c");
scanf("%d,%d,%d",&a,&b,&c);
disc=(b*b)-(4*a*c);
deno=2*a;
if(disc>0)
{
printf("\n the roots are real numbers");
x1=(-b/deno)+(sqrt(disc)/deno);
x2=(-b/deno)-(sqrt(disc)/deno);
pritnf("\n the roots are %f,%f",x1,x2);
}
else if(disc==0)
{
printf("\n  roots are repeated");
x1=-b/deno;
pritnf("\n  roots are  %f",x1);
}
else
printf("\n roots are imaginary....");
getch();
}